home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Getting my facet from wit.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Getting my facet from within ::DoCharKey
  2. Sent:        6/11/96 11:42 AM
  3. Received:    6/11/96 12:01 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I need to get my facet from within the  ::DoCharKey method of my View so
  9. >that I can set up a "FW_CViewContext" for rendering.
  10. >
  11. >What's the best way to do it?
  12. >
  13. >Is there an easier way than grabbing my frame and iterating to it's first
  14. >facet?
  15. >
  16. >-Neal
  17.  
  18. Key events don't have a facet but just a frame. Your are supposed to 
  19. update all your frames' facets. If you don't want to do that every key 
  20. you can call FW_CFrame::GetActiveFacet which is the last facet the user 
  21. clicked in. Be careful that GetActiveFacet can return NULL. You can also 
  22. ask for the first facet of your frame (which can also be NULL).
  23.  
  24. ........................................................................
  25.  Henri Lamiraux                                      lamiraux@apple.com
  26.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  27. ........................................................................
  28.  
  29.